package com.huatai.datacenter.controller.test.controller;

import com.huatai.datacenter.controller.test.entity.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/getFireData")
@Api(tags = "消防数据接口", description = "消防数据接口")
public class FireHttpSetController {

    @ApiOperation(value = "《消防安全预警》主题--消防重点部位安全情况")
    @GetMapping("/FireSafetySituation")
    public List<FireSafetySituation> getFireSafetySituation(){
        List<FireSafetySituation> arrayList = new ArrayList<>();
        arrayList.add(new FireSafetySituation("safe-unit-1", "贵阳市红城美元化工有限公司", "观山湖区", "106.672054", "26.624761",
                "廖凯", "137****6496", "37", "54", "1", "东南风", "12", "14", "1", "1", "0", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-2", "贵阳市名城西苑商贸中心", "云岩区", "106.725746", "26.598694",
                "肖喜祥", "185****1636", "22", "22", "1", "南风", "5117", "2415", "1", "0", "1", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-3", "贵阳市南明海贸商业街", "南明区", "106.750683", "26.571006",
                "龙溪东", "133****7702", "23", "56", "2", "东南风", "12", "13", "0", "0", "0", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-4", "贵州大学北校区朝阳村", "花溪区", "106.681113", "26.446166",
                "陆德明", "150****1429", "22", "45", "1", "南风", "14", "15", "0", "0", "0", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-5", "为明学校保利春天校区", "乌当区", "106.784004", "26.632176",
                "赵星星", "189****8696", "22", "57", "2", "南风", "13", "17", "1", "0", "0", "1"));
        arrayList.add(new FireSafetySituation("safe-unit-6", "贵州科学城", "白云区", "106.665476", "26.728426",
                "孙志祥", "177****5631", "24", "53", "2", "东风", "20", "11", "0", "0", "0", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-7", "清镇职教城", "清镇市", "106.478118", "26.592793",
                "孟德禄", "135****9097", "21", "51", "1", "东风", "15", "18", "0", "0", "0", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-8", "息烽县邬氹工业园区", "息烽县", "106.746317", "27.094682",
                "敖兴海", "185****1435", "19", "50", "2", "东风", "277", "305", "0", "0", "0", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-9", "猕天大圣蔬果物流园区", "修文县", "106.615596", "26.828776",
                "谢天兴", "177****2574", "20", "51", "2", "东风", "19", "12", "0", "0", "0", "0"));
        arrayList.add(new FireSafetySituation("safe-unit-10", "开磷集团第三磷融工厂", "开阳县", "106.858794", "27.11992",
                "蒋烈奇", "131****3674", "19", "50", "2", "南风", "15", "15", "0", "0", "0", "0"));
        return arrayList;
    }

    @ApiOperation("《消防安全预警》主题--安全隐患记录")
    @GetMapping("/Safetyhazardrecord")
    public List<Safetyhazardrecord>getSafetyhazardrecord(){
        List<Safetyhazardrecord> arrayList = new ArrayList<>();
        arrayList.add(new Safetyhazardrecord("safe-alarm-1", "线路温度异常", "用电隐患告警", "2025/5/30 15:33:41", "执行消防重点部位巡察-贵阳市红城美元化工有限公司",
                "齐峰", "防火处", "2025/5/30 15:33:41", "2025/5/30 15:45:33", "已解决", "贵阳市红城美元化工有限公司", "观山湖区",
                "廖凯", "13797146496", "37", "54", "1", "东南风", "12", "14"));
        arrayList.add(new Safetyhazardrecord("safe-alarm-2", "烟感主机告警异常", "主机告警", "2025/5/30 14:30:30", "执行消防重点部位巡察-贵阳市名城西苑商贸中心",
                "齐峰", "防火处", "2025/5/30 14:30:30", "2025/5/30 14:37:35", "已解决", "贵阳市名城西苑商贸中心",
                "云岩区", "肖喜祥", "18585051636", "22", "22", "1", "南风", "5117", "2415"));
        arrayList.add(new Safetyhazardrecord("safe-alarm-3", "高位水箱水位异常", "用水隐患告警",
                "2025/5/31 11:33:11", "执行消防重点部位巡察-为明学校保利春天校区", "齐峰", "防火处",
                "2025/5/31 11:33:11", "2025/5/31 11:36:27", "已解决", "为明学校保利春天校区", "乌当区", "赵星星", "18908518696", "22", "57", "2", "南风", "13", "17"));
        return arrayList;
    }
    @ApiOperation("《消防战时分析》主题--消防报警记录")
    @GetMapping("/Firealarmrecord")
    public List<Firealarmrecord>get消防报警记录() {
        List<Firealarmrecord> arrayList = new ArrayList<>();
        arrayList.add(new Firealarmrecord("1", "贵阳市云岩区未来方舟D3组团南门", "居民区域", "社会救助",
                "云岩区", "2025/5/31 15:10:01", "云岩大队", "8", "8", "3", "1", "2", "1"));
        arrayList.add(new Firealarmrecord("2", "贵阳市南明区海天装饰大厦B门", "经营场所", "抢险救援",
                "南明区", "2025/5/31 21:15:55", "南明大队", "6", "6", "1", "0", "1", "0"));
        return arrayList;
    }
    @ApiOperation("《消防战时分析》主题--消防队站能力")
    @GetMapping("/Firebrigadestationcapacity")
    public List<Firebrigadestationcapacity>getFirebrigadestationcapacity(){
        List<Firebrigadestationcapacity>arrayList = new ArrayList<>();
        arrayList.add(new Firebrigadestationcapacity("team-1", "特勤大队", "10", "10", "4", "1", "1", "6", "5"));
        arrayList.add(new Firebrigadestationcapacity("team-2", "观山湖大队", "25", "25", "5", "2", "2", "20", "8"));
        arrayList.add(new Firebrigadestationcapacity("team-3", "南明大队", "6", "6", "1", "0", "1", "20", "15"));
        arrayList.add(new Firebrigadestationcapacity("team-4", "花溪大队", "0", "0", "0", "0", "0", "20", "0"));
        arrayList.add(new Firebrigadestationcapacity("team-5", "云岩大队", "8", "8", "3", "1", "2", "20", "12"));
        arrayList.add(new Firebrigadestationcapacity("team-6", "白云大队", "0", "0", "0", "0", "0", "20", "10"));
        arrayList.add(new Firebrigadestationcapacity("team-7", "乌当大队", "0", "0", "0", "0", "0", "20", "11"));
        arrayList.add(new Firebrigadestationcapacity("team-8", "经开大队", "0", "0", "0", "0", "0", "20", "15"));
        arrayList.add(new Firebrigadestationcapacity("team-9", "清镇大队", "0", "0", "0", "0", "0", "20", "14"));
        arrayList.add(new Firebrigadestationcapacity("team-10", "修文大队", "0", "0", "0", "0", "0", "20", "11"));
        arrayList.add(new Firebrigadestationcapacity("team-11", "息烽大队", "0", "0", "0", "0", "0", "20", "12"));
        arrayList.add(new Firebrigadestationcapacity("team-12", "开阳大队", "0", "0", "0", "0", "0", "20", "0"));
        arrayList.add(new Firebrigadestationcapacity("team-13", "司令部", "24", "0", "5", "2", "3", "0", "0"));
        arrayList.add(new Firebrigadestationcapacity("team-14", "后勤处", "36", "0", "0", "0", "0", "0", "0"));
        arrayList.add(new Firebrigadestationcapacity("team-15", "防火处", "28", "36", "0", "0", "0", "0", "0"));
        arrayList.add(new Firebrigadestationcapacity("team-16", "政治处", "25", "0", "0", "0", "0", "0", "0"));
        return arrayList;
    }

    @ApiOperation("《消防战时分析》主题--水源情况")
    @GetMapping("/Watersourcesituation")
    public List<Watersourcesituation>getWatersourcesituation() {
        List<Watersourcesituation> arrayList = new ArrayList<>();

        arrayList.add(new Watersourcesituation("district-1", "观山湖区", "242", "15"));
        arrayList.add(new Watersourcesituation("district-2", "云岩区", "132", "16"));
        arrayList.add(new Watersourcesituation("district-3", "南明区", "135", "10"));
        arrayList.add(new Watersourcesituation("district-4", "花溪区", "144", "7"));
        arrayList.add(new Watersourcesituation("district-5", "乌当区", "142", "27"));
        arrayList.add(new Watersourcesituation("district-6", "白云区", "158", "21"));
        arrayList.add(new Watersourcesituation("district-7", "清镇市", "266", "16"));
        arrayList.add(new Watersourcesituation("district-8", "息烽县", "137", "18"));
        arrayList.add(new Watersourcesituation("district-9", "修文县", "138", "29"));
        arrayList.add(new Watersourcesituation("district-10", "开阳县", "134", "33"));
        return arrayList;
    }

    @ApiOperation("《消防综合事务》主题--事项记录表")
    @GetMapping("/EventRecordForm")
    public List<EventRecordForm>getEventRecordForm() {
       List<EventRecordForm> arrayList = new ArrayList<>();
        arrayList.add(new EventRecordForm("t1", "执行消防重点部位巡察-贵阳市红城美元化工有限公司", "重点部位巡察", "齐峰",
                "防火处", "2025/5/30 15:33:41", "2025/5/30 15:38:41", "2025/5/30 15:45:33"));
        arrayList.add(new EventRecordForm("t2", "执行消防重点部位巡察-贵阳市名城西苑商贸中心", "重点部位巡察", "齐峰", "防火处", "2025/5/30 14:30:30",
                "2025/5/30 14:35:30", "2025/5/30 14:37:35"));
        arrayList.add(new EventRecordForm("t3", "执行消防重点部位巡察-为明学校保利春天校区", "重点部位巡察", "齐峰", "防火处",
                "2025/5/31 11:33:11", "2025/5/31 11:38:11", "2025/5/31 11:36:27"));
        arrayList.add(new EventRecordForm("t4", "防火处专项工作督查督办会", "三重一大会议", "齐峰", "防火处", "2025/5/31 10:30:00",
                "2025/5/31 11:50:41", "2025/5/31 11:50:41"));
        return arrayList;
    }

    @ApiOperation("《消防人员效能》主题--考评记录表")
    @GetMapping("/EvaluationRecordForm")
    public List<EvaluationRecordForm>getEvaluationRecordForm(){
        List<EvaluationRecordForm> arrayList = new ArrayList<>();
        arrayList.add(new EvaluationRecordForm("kp1", "党建政治教育考评", "红门政教", "齐峰", "防火处", "2025/5/5", "96"));
        arrayList.add(new EvaluationRecordForm("kp2", "5月干部绩效考评", "干部绩效考评", "齐峰", "防火处", "2025/5/31", "91"));
        arrayList.add(new EvaluationRecordForm("kp3", "5月队伍量化考评", "队管云量化考评", "齐峰", "防火处", "2025/5/31", "94"));
        return arrayList;
    }
    @ApiOperation("《消防人员效能》主题--工作压力表")
    @GetMapping("/Workpressuregauge")
    public List<Workpressuregauge>getWorkpressuregauge(){
        List<Workpressuregauge> arrayList = new ArrayList<>();
        arrayList.add(new Workpressuregauge("t1", "执行消防重点部位巡察-贵阳市红城美元化工有限公司", "重点部位巡察", "齐峰", "防火处", "2025/5/30 15:33:41", "2025/5/30 15:45:33"));
        arrayList.add(new Workpressuregauge("t2", "执行消防重点部位巡察-贵阳市名城西苑商贸中心", "重点部位巡察", "齐峰", "防火处", "2025/5/30 14:30:30", "2025/5/30 14:37:35"));
        arrayList.add(new Workpressuregauge("t3", "执行消防重点部位巡察-为明学校保利春天校区", "重点部位巡察", "齐峰", "防火处", "2025/5/31 11:33:11", "2025/5/31 11:36:27"));
        return arrayList;
    }
    @ApiOperation("《消防人员效能》主题--响应速度表")
    @GetMapping("/Responsespeedmeter")
    public List<Responsespeedmeter>getResponsespeedmeter() {
        ArrayList<Responsespeedmeter> arrayList = new ArrayList<>();
        arrayList.add(new Responsespeedmeter("t1", "执行消防重点部位巡察-贵阳市红城美元化工有限公司", "重点部位巡察", "齐峰", "防火处", "2025/5/30 15:33:41", "2025/5/30 15:38:41", "2025/5/30 15:45:33"));
        arrayList.add(new Responsespeedmeter("t2", "执行消防重点部位巡察-贵阳市名城西苑商贸中心", "重点部位巡察", "齐峰", "防火处", "2025/5/30 14:30:30", "2025/5/30 14:35:30", "2025/5/30 14:37:35"));
        arrayList.add(new Responsespeedmeter("t3", "执行消防重点部位巡察-为明学校保利春天校区", "重点部位巡察", "齐峰", "防火处", "2025/5/31 11:33:11", "2025/5/31 11:38:11", "2025/5/31 11:36:27"));
        return arrayList;
    }
}
